import request from "@/utils/request";
const VITE_APP_REPORT_API = import.meta.env.VITE_APP_REPORT_API;
/**
 * 数据上报格式要求: https://doc.weixin.qq.com/doc/w3_ACcAuAbKAL82ADmE5oKQyGv2yM3T3?scode=ANsAVwcYABAKboklbvAU8A2AYIACI
 */
export function report(data: any, headers: any) {
  return request({
    headers,
    noMsg: true,
    baseURL: VITE_APP_REPORT_API,
    url: "/api/v2/report",
    method: "post",
    noAppId: true,
    noToken: true,
    data
  });
}
